package com.example.jyjava.dao;

import com.example.jyjava.bean.Collect;
import com.example.jyjava.bean.Order;
import com.example.jyjava.bean.Report;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDao {
    public int addOrder(Order order);

    public List<Order> getAllOrder(@Param("userId") Integer userId,@Param("orderType") String orderType,@Param("sellerId") Integer sellerId);

    public int updateOrderType(@Param("id") Integer id,@Param("orderType") String orderType);

    public Order getOrderId(@Param("id") Integer id);

    public List<Order> getOrder(@Param("name")String name, @Param("pageStart")int PageStart, @Param("pageSize")int pageSize,@Param("userId") Integer userId,@Param("sellerId") Integer sellerId);

    public int getOrderC(@Param("name")String name,@Param("userId") Integer userId,@Param("sellerId") Integer sellerId);
}
